package org.wanho.rent.mapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.wanho.jdbc.util.RowMapper;
import org.wanho.rent.entity.ProductType;

public class ProductTypeMapper implements RowMapper<ProductType>{

	@Override
	public ProductType mapRow(ResultSet rs) throws SQLException {
		ProductType pt = new ProductType();
		pt.setId(rs.getInt("producttypeid"));
		pt.setProductTypeName(rs.getString("producttypename"));
		pt.setProductTypeStatus(rs.getInt("producttypestate"));
		return pt;
	}

}
